Learn R Programming

ANTsR (version 1.0)

[,antsImage,NULL,ANY-method: as.antsImage

Description

convert types to antsImage

Usage

# S4 method for antsImage,`NULL`,ANY
[(x, i, j, ..., drop = TRUE)

# S4 method for antsImage,`NULL`,ANY [(x, i, j, ..., drop = TRUE)

# S4 method for antsImage,logical,ANY [(x, i, j, ..., drop = TRUE)

# S4 method for antsImage,logical,ANY [(x, i, j, ..., drop = TRUE)

# S4 method for antsImage,ANY,ANY [(x, i, j, ..., drop = TRUE)

# S4 method for antsImage,ANY,ANY [(x, i, j, ..., drop = TRUE)

# S4 method for antsImage,`NULL`,`NULL` [(x, i, j, k = NA, l = NA, ..., drop)

# S4 method for antsImage,`NULL`,`NULL` [(x, i, j, k = NA, l = NA, ..., drop)

# S4 method for antsImage,numeric,numeric [(x, i, j, k = NA, l = NA, ..., drop)

# S4 method for antsImage,numeric,numeric [(x, i, j, k = NA, l = NA, ..., drop)

# S4 method for antsImage,numeric,`NULL` [(x, i, j, k = NA, l = NA, ..., drop)

# S4 method for antsImage,numeric,`NULL` [(x, i, j, k = NA, l = NA, ..., drop)

# S4 method for antsImage,`NULL`,numeric [(x, i, j, k = NA, l = NA, ..., drop)

# S4 method for antsImage,`NULL`,numeric [(x, i, j, k = NA, l = NA, ..., drop)

# S4 method for antsImage,missing,numeric [(x, i, j, k = NA, l = NA, ..., drop)

# S4 method for antsImage,numeric,missing [(x, i, j, k = NA, l = NA, ..., drop)

# S4 method for antsImage,missing,missing [(x, i, j, k = NA, l = NA, ..., drop)

# S4 method for antsImage,`NULL`,ANY,ANY [(x, i, j, ...) <- value

# S4 method for antsImage,logical,ANY,ANY [(x, i, j, ...) <- value

# S4 method for antsImage,array,ANY,ANY [(x, i, j, ...) <- value

# S4 method for antsImage,matrix,ANY,ANY [(x, i, j, ...) <- value

# S4 method for antsImage,list,ANY,ANY [(x, i, j, ...) <- value

# S4 method for antsImage,`NULL`,antsRegion,ANY [(x, i, j, ...) <- value

# S4 method for antsImage,logical,antsRegion,ANY [(x, i, j, ...) <- value

# S4 method for antsImage,array,antsRegion,ANY [(x, i, j, ...) <- value

# S4 method for antsImage,matrix,antsRegion,ANY [(x, i, j, ...) <- value

# S4 method for antsImage,`NULL`,`NULL`,numeric [(x, i, j, ...) <- value

# S4 method for antsImage,numeric,numeric,numeric [(x, i, j, ...) <- value

# S4 method for antsImage,numeric,`NULL`,numeric [(x, i, j, ...) <- value

# S4 method for antsImage,`NULL`,numeric,numeric [(x, i, j, ...) <- value

as.antsImage(object, ...)

# S4 method for matrix as.antsImage(object, pixeltype = "float", spacing = as.numeric(seq.int(from = 1, by = 0, length.out = length(dim(object)))), origin = as.numeric(seq.int(from = 0, by = 0, length.out = length(dim(object)))))

# S4 method for array as.antsImage(object, pixeltype = "float", spacing = as.numeric(seq.int(from = 1, by = 0, length.out = length(dim(object)))), origin = as.numeric(seq.int(from = 0, by = 0, length.out = length(dim(object)))))

Arguments

x

antsImage

i

logical or i-th dimension

j

not used or j-th dimension

...

Extra named arguments passed to FUN

drop

method for missing data

k

not used or k-th dimension

l

not used or l-th dimension

value

ok

object

An object

pixeltype

a character string e.g. "float"

spacing

numeric vector matching image dimensionality e.g. c(1.2,1.2)

origin

numeric vector matching image dimensionality e.g. c(0,0)

Methods (by class)

  • x = antsImage,i = NULL,j = ANY:

  • x = antsImage,i = NULL,j = ANY:

  • x = antsImage,i = logical,j = ANY:

  • x = antsImage,i = logical,j = ANY:

  • x = antsImage,i = ANY,j = ANY:

  • x = antsImage,i = ANY,j = ANY:

  • x = antsImage,i = NULL,j = NULL:

  • x = antsImage,i = NULL,j = NULL:

  • x = antsImage,i = numeric,j = numeric:

  • x = antsImage,i = numeric,j = numeric:

  • x = antsImage,i = numeric,j = NULL:

  • x = antsImage,i = numeric,j = NULL:

  • x = antsImage,i = NULL,j = numeric:

  • x = antsImage,i = NULL,j = numeric:

  • x = antsImage,i = missing,j = numeric:

  • x = antsImage,i = numeric,j = missing:

  • x = antsImage,i = missing,j = missing:

  • x = antsImage,i = NULL,j = ANY,value = ANY:

  • x = antsImage,i = logical,j = ANY,value = ANY:

  • x = antsImage,i = array,j = ANY,value = ANY:

  • x = antsImage,i = matrix,j = ANY,value = ANY:

  • x = antsImage,i = list,j = ANY,value = ANY:

  • x = antsImage,i = NULL,j = antsRegion,value = ANY:

  • x = antsImage,i = logical,j = antsRegion,value = ANY:

  • x = antsImage,i = array,j = antsRegion,value = ANY:

  • x = antsImage,i = matrix,j = antsRegion,value = ANY:

  • x = antsImage,i = NULL,j = NULL,value = numeric:

  • x = antsImage,i = numeric,j = numeric,value = numeric:

  • x = antsImage,i = numeric,j = NULL,value = numeric:

  • x = antsImage,i = NULL,j = numeric,value = numeric:

  • matrix:

  • array: